package model;

import org.springframework.stereotype.Component;

/**
 * Date: 2015/10/15  14:59
 *
 * @author lyp
 */
@Component
public class User {
    private String name;
    private int age;

    public User() {
    }

    public User( int age, String name) {
        this.age = age;
        this.name = name;
    }
    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "User{" +
                "age=" + age +
                ", name='" + name + '\'' +
                '}';
    }
}
